﻿package kizzo.utils 
{
	import fl.motion.easing.Quadratic;
	import flash.filters.BitmapFilter;
	import flash.display.DisplayObject;
	
	public class FilterTweener extends PropertyTweener
	{		
		private var display_object:DisplayObject;
		
		public function FilterTweener(display_object:DisplayObject, filter:BitmapFilter, property:String, start_value:Number, end_value:Number, steps:uint = 10) 
		{
			this.display_object = display_object;				
			super(filter, property, start_value, end_value, steps);
		}
		
		
		override protected function set_current(step:uint):void
		{
			super.set_current(this.current_step);			
			this.display_object.filters = [this.object];	
		}			
		
	}
	
}